import request from "@/utils/request";

export function classGood(data) {
  return request({
    url: "/v2.2/classGood",
    method: "post",
    data: data,
  });
}

export function initBargain(data) {
  return request({
    url: "/init/bargain",
    method: "post",
    data: data,
  });
}

export function freeTake(data) {
  return request({
    url: "/v2.2/freeTake",
    method: "post",
    data: data,
  });
}

export function golbDetail(data) {
  return request({
    url: "/v2.2/golbDetail2",
    method: "post",
    data: data,
  });
}

export function bargainLog(data) {
  return request({
    url: "/v2.2/log",
    method: "post",
    data: data,
  });
}

export function dynamicList(data) {
  return request({
    url: "/v2.2/dynamic",
    method: "post",
    data: data,
  });
}

export function moreGoods(data) {
  return request({
    url: "/v2.2/more",
    method: "post",
    data: data,
  });
}

export function schedule(data) {
  return request({
    url: "/v2.2/schedule",
    method: "post",
    data: data,
  });
}

export function behest(data) {
  return request({
    url: "/v2.2/behest",
    method: "post",
    data: data,
  });
}
export function record(data) {
  return request({
    // url: "/v2.2/behest",
    url: "/v2.2/record",
    method: "post",
    data: data,
  });
}
// 判断单个商品是否可以被再次创建订单
export function goodStatus(data) {
  return request({
    url: "/v2.2/goodStatus",
    method: "post",
    data: data,
  });
}
// 用户砍价
export function userBargain(data) {
  return request({
    url: "/v2.2/userBargain/v1",
    method: "post",
    data: data,
  });
}
//领取奖品
export function award(data) {
  return request({
    url: "/v2.2/award",
    method: "post",
    data: data,
  });
}
//提交限金提现
export function winningAmount(data) {
  return request({
    url: "/v2.2/winningAmount",
    method: "post",
    data: data,
  });
}
//获取兑奖吗
export function redemptioncode(data) {
  return request({
    url: "/v2.2/redemptionCode",
    method: "post",
    data: data,
  });
}
//我的奖品
export function myPrize(data) {
  return request({
    url: "/v2.2/exchangeMe",
    // url: "/exchange/me",

    method: "post",
    data: data,
  });
}

//相关规则
export function homeRule(data) {
  return request({
    url: "/activity/rule",
    method: "post",
    data: data,
  });
}
